package com.example.demo1.temp;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author Lenovo
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Person {
    private Integer age;
    private String name;
    private Status status;
    private double salary;
    public Person(Integer age){
        this.age = age;
    }
    public Person(String name,Integer age){
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", status=" + status +
                ", salary=" + salary +
                '}';
    }

    public enum Status{
        /**
         * 状态信息
         */
       FREE,
       BUSY,
       VOCATION
    }
}
